package com.ruoyi.training.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程题目选项管理对象 tb_exam_question_option
 *
 * @author wng
 * @date 2024-08-04
 */
public class ExamQuestionOption extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 题目id
     */
    @Excel(name = "题目id")
    private Long questionId;

    /**
     * 选项 A/B/C/D...
     */
    @Excel(name = "选项 A/B/C/D...")
    private String option;

    /**
     * 选项内容
     */
    @Excel(name = "选项内容")
    private String content;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setOption(String option) {
        this.option = option;
    }

    public String getOption() {
        return option;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("questionId", getQuestionId())
                .append("option", getOption())
                .append("content", getContent())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
